package com.mz.mattress.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mz.mattress.api.common.BaseEntity;
import lombok.Data;

import java.util.List;

/**
 * 销售
 */
@Data
@TableName("mz_sale")
public class Sale extends BaseEntity {

    private Integer id;

    // 0是一级  大于0是二级
    private Integer pid;

    //memberMerId
    private Long memberId;

    //手机号
    private String mobile;

    //销售名字
    private String name;

    //省
    private String province;

    //市
    private String city;

//    //区
//    private String district;

//    //是否系统默认比例 1是 0否
//    private Integer defaultRatio;

    //佣金比例 百分之几
    private Integer bonusRatio;

    //状态 0可用 1禁用 2注销
    private Integer status;

    //签约门店数
    private Integer merchantSum;

    //签约门店审核中
    private Integer merchantApply;

    //设备数量
    private Integer deviceSum;

    //设备离线数
    private Integer deviceOff;

    //总收益
    private Integer bonusSum;

    //本月收益
    private Integer bonusCurMonth;

    //子服务商
    @TableField(exist = false)
    private List<Sale> list;

}
